import { fileURLToPath, URL } from 'node:url'
import {resolve} from "path"
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  plugins: [vue()],
  resolve:{
    alias:{
      //这里是定义路径别名的两种方式！！！
      '@':fileURLToPath(new URL('./src',import.meta.url)),
      '@components':resolve(__dirname, 'src/components')
    }
  }
})
